

#ifndef __DRIV_IIC_H__
#define __DRIV_IIC_H__

#include <stdint.h>

uint8_t AT24CXX_ReadOneByte(uint16_t ReadAddr);                        
void AT24CXX_WriteOneByte(uint16_t WriteAddr,uint8_t DataToWrite);    
void AT24CXX_WriteLenByte(uint16_t WriteAddr,uint32_t DataToWrite,uint8_t Len);
uint32_t AT24CXX_ReadLenByte(uint16_t ReadAddr,uint8_t Len);
void AT24CXX_Write(uint16_t WriteAddr,uint8_t *pBuffer,uint16_t NumToWrite);
void AT24CXX_Read(uint16_t ReadAddr,uint8_t *pBuffer,uint16_t NumToRead);

uint8_t AT24CXX_Check(void); 
void AT24CXX_Init(void);
int32_t  AT24Cxx_TestAll(void);
int32_t  AT24Cxx_EraseAll(void);


#endif
